﻿@model IEnumerable<DLM.Domain.Model.User>
@using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "会员列表";
}



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>黑名单</title>
    <link href="@Url.Content("~/Content/css/admin/global.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/admin/global.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <link type="text/css" href="@Url.Content("~/content/themes/custom/jquery-ui-1.8.18.custom.css")" rel="stylesheet" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.18.custom.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")"></script>
    <script type="text/javascript">
        $(function () {
            $('#add_dialog_link').click(function () {
                $('#add_dialog').dialog({ modal: true }, { width: 680 }, { height: 480 });
            });
        });

    </script>
</head>
<body id="main_body">
    <div class="c1">
        <h1>
            <span>会员列表</span></h1>
 @{Html.RenderPartial("_SearchUser");}
        <div class="table_box">
            <table summary="活动审核" class="tb">
                <colgroup>
                    <col class="a" />
                    <col class="b" />
                    <col class="c" />
                    <col class="d" />
                </colgroup>
                <thead>
                    <tr>
                        <th>
                            编号
                        </th>
                        <th class="b">
                            账户名称
                        </th>
                        <th>
                            姓名
                        </th>
                        <th>
                            性别
                        </th>
                        <th>
                            年龄
                        </th>
                        <th>
                            电话
                        </th>
                       <th>
                            QQ
                       </th>
                       <th>
                        形象照
                       </th>
                       <th>
                        注册日期
                       </th>
                       <th>
                       
                       </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                             <tr>
                        <td>
                            @item.UserID
                        </td>
                        <td>
                            @item.AccountName
                            
                        </td>
                        <td>
                           @item.Name
                        </td>
                        <td>
                            @item.Gender
                        </td>
                        <td>
                        @item.Age
                            
                        </td>
                        <td>
                        @item.Phone
                        </td>
                        <td>
                            @item.IM
                        </td>
                        <td>
                              @if (item.Photo == "none_75_75.png")
                            {
                                <img src="@Url.Content("~/Content/ad/none_75_75.png")" alt="头像" />
                            }
                            else
                            { 
                                <img src="@Url.Content("~/Files/Photos/" + item.UserID + "/Title/" + item.Photo)" />
                            }
                        </td>
                        <td>
                            @item.CreateDate
                        </td>
                        <td>
                              @Html.ActionLink("查看", "Detail", new { id = item.UserID })
                        </td> 
                               </tr>
                                    
             
                    }
                </tbody>
            </table>
        </div>
        <!--TABLE E-->
        <!--Paging S-->
        <div class="paging clearfix">
         @Html.Pager(Model as PagedList<DLM.Domain.Model.User>, new PagerOptions { CssClass = "pageAct", PageIndexParameterName = "page", ShowFirstLast = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowPrevNext = true, PrevPageText = "上一页", FirstPageText = "首页", LastPageText = "末页", NextPageText = "下一页" })
@*            <span class="pageAct"><a href="#" class="forbidden">首页</a> <a href="#">上一页</a>
                <select class="select">
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                </select>
                <a href="#">下一页</a> <a href="#">最后一页</a></span> <span class="pageInfo">Total Records:
                    <em>83</em>Page:<em>1/9</em></span>*@
        </div>
        <!--Paging E-->
    </div>
</body>
</html>